package com.ruanmou.house.houseserver.controller;

import com.ruanmou.house.housecommon.common.ApiResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HouseController {

    @GetMapping("/testApiRequest")
    public ApiResponse get(){
        return ApiResponse.ofSuccess("成功");
    }
    @GetMapping("/ex")
    public ApiResponse getEx(){
        throw new RuntimeException();
    }
}
